<?php

namespace App\Exceptions;



use App\Http\Controllers\Controller;
use App\Utils\ResUtil;
use Illuminate\Support\Facades\Log;


trait ExecptionTrait
{
    public function render()
    {
        return response()->json(ResUtil::error($this->getMessage(), $this->getCode(), $this->getFile().':'.$this->getLine()),200);
    }
}
